package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ClassificationOfCultureMapper;
import com.ruoyi.system.domain.ClassificationOfCulture;
import com.ruoyi.system.service.IClassificationOfCultureService;

/**
 * 养殖种类分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-13
 */
@Service
public class ClassificationOfCultureServiceImpl implements IClassificationOfCultureService 
{
    @Autowired
    private ClassificationOfCultureMapper classificationOfCultureMapper;

    /**
     * 查询养殖种类分类
     * 
     * @param id 养殖种类分类主键
     * @return 养殖种类分类
     */
    @Override
    public ClassificationOfCulture selectClassificationOfCultureById(Long id)
    {
        return classificationOfCultureMapper.selectClassificationOfCultureById(id);
    }

    /**
     * 查询养殖种类分类列表
     * 
     * @param classificationOfCulture 养殖种类分类
     * @return 养殖种类分类
     */
    @Override
    public List<ClassificationOfCulture> selectClassificationOfCultureList(ClassificationOfCulture classificationOfCulture)
    {
        return classificationOfCultureMapper.selectClassificationOfCultureList(classificationOfCulture);
    }

    /**
     * 新增养殖种类分类
     * 
     * @param classificationOfCulture 养殖种类分类
     * @return 结果
     */
    @Override
    public int insertClassificationOfCulture(ClassificationOfCulture classificationOfCulture)
    {
        return classificationOfCultureMapper.insertClassificationOfCulture(classificationOfCulture);
    }

    /**
     * 修改养殖种类分类
     * 
     * @param classificationOfCulture 养殖种类分类
     * @return 结果
     */
    @Override
    public int updateClassificationOfCulture(ClassificationOfCulture classificationOfCulture)
    {
        return classificationOfCultureMapper.updateClassificationOfCulture(classificationOfCulture);
    }

    /**
     * 批量删除养殖种类分类
     * 
     * @param ids 需要删除的养殖种类分类主键
     * @return 结果
     */
    @Override
    public int deleteClassificationOfCultureByIds(Long[] ids)
    {
        return classificationOfCultureMapper.deleteClassificationOfCultureByIds(ids);
    }

    /**
     * 删除养殖种类分类信息
     * 
     * @param id 养殖种类分类主键
     * @return 结果
     */
    @Override
    public int deleteClassificationOfCultureById(Long id)
    {
        return classificationOfCultureMapper.deleteClassificationOfCultureById(id);
    }
}
